<template>
  <div class="mode-ueditor">
    <div class="text">有急事，记得打电话哦！</div>
    <el-table
    :data="tableData"
    style="width: 100%;margin-top:60px;margin-left:100px;"
    :row-class-name="tableRowClassName">
    <el-table-column
      prop="date"
      label="日期"
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="tel"
      label="电话"
      width="180" >
    </el-table-column>
  </el-table>
  </div>
  
</template>

<script>
import ueditor from "ueditor";
export default {
  data() {
    return {
      tableData: [{
          date: '周一',
          name: '王小虎',
          tel: '1658423698454'
        }, {
          date: '周二',
          name: '王侠',
          tel: '1658423698454'
        }, {
          date: '周三',
          name: '朱小明',
          tel: '1658423698454'
        }, {
          date: '周四',
          name: '张而出',
         tel: '1658423698454'
        },{
          date: '周五',
          name: '王珞丹',
          tel: '1658423698454'
        },{
          date: '周六',
          name: '张泽',
         tel: '1658423698454'
        },{
          date: '周日',
          name: '亮届',
         tel: '1658423698454'
        }]
    };
  },
  mounted() {},
  methods: {
     tableRowClassName({row, rowIndex}) {
        if (rowIndex === 1 || rowIndex === 5) {
          return 'warning-row';
        } else if (rowIndex === 3) {
          return 'success-row';
        }
        return '';
      }
  },
};
</script>

<style lang="scss">
.mode-ueditor {
  margin-top: 20px;
  margin-left: 50px;
  margin-bottom: 10px;
}

.text {
  font: bold 20px/0.1 "微软雅黑";
  color: rgba(30, 203, 255,0.8);
  /*文本阴影*/
  text-shadow: 10px 10px 10px rgb(117, 114, 114);
  /*text-shadow: 10px 10px 50px #000,-10px -10px 50px #f00;*/
}

.el-table .warning-row {
    background: oldlace;
  }

  .el-table .success-row {
    background: #f0f9eb;
  }
</style>
